package com.example.flower_shop.websocket;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MessageReq {
    @NotBlank(message = "消息不能为空")
    private String message;
    @NotBlank(message = "发送人不能为空")
    private String sender;
    @NotBlank(message = "接收人不能为空")
    private String receiver;
    @NotBlank(message = "消息类型不能为空")
    private String type;
}
